@REM Conan 根据 conanfile.txt 或 conanfile.py 安装所需的库依赖

@REM 使用静态库
@REM conan install . --output-folder=build --build=missing --profile:host=mingw8.1 --profile:build=mingw8.1

@REM -o jsoncpp*:shared=True 在conan install 命令行显示的指定动态库
conan install . --output-folder=build --build=missing --profile:host=mingw8.1 --profile:build=mingw8.1 -o jsoncpp*:shared=True
@REM conan install . --output-folder=build --build=missing -o jsoncpp*:shared=True

@REM CMake 生成项目文件
if not exist build (
    mkdir build
)   
cd build

@REM 生成项目文件
cmake .. -G "MinGW Makefiles" -DCMAKE_TOOLCHAIN_FILE="build/Release/generators/conan_toolchain.cmake" -DCMAKE_BUILD_TYPE=Release

cmake --build . --config Release

@REM 运行生成的可执行文件
json_test.exe
